package developer.zyk.ability.config;

import developer.zyk.global.common.consts.OssPlatformEnum;
import developer.zyk.global.upload.upload.handlers.UploadService;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zhangyongkang
 * @time 2025/5/14 11:37
 * @description
 */
@Configuration
public class UploadConfig {


    @Bean("uploadServiceMap")
    public Map<OssPlatformEnum, UploadService> uploadServiceMap(
            @Qualifier("tencentUploadService") UploadService tencent
    ) {
        Map<OssPlatformEnum, UploadService> map = new HashMap<>();
        map.put(OssPlatformEnum.TENCENT, tencent);
        return map;
    }
}
